/*******************************************************************************
 * This file is part of blueprint4j www.blueprint4j.org.
 * 
 *     blueprint4j is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Lesser General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 * 
 *     blueprint4j is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Lesser General Public License for more details.
 * 
 *     You should have received a copy of the GNU Lesser General Public License
 *     along with blueprint4j. If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
package blueprint4j.db;

import blueprint4j.Constants;

public class FieldGroupContactBankAccount extends FieldGroup {
	private static final long serialVersionUID = 1L;
	
	
	public FieldString account_bank;
	public FieldString account_holder_name;
	public FieldString account_branch_code;
	public FieldString account_number;

	public FieldGroupContactBankAccount(String name,String prefix,Entity entity,boolean make_name_field) {
		super(name,Constants.ICON_BASE+"actions/money.png",entity);
		if (prefix==null){
			prefix="";
		}
		if (prefix.length()>0){
			prefix=prefix+"_";
		}
		this.account_bank = new FieldString(prefix+"account_bank", (make_name_field?Field.FIELD_NAME:0), "Bank", 50,entity);
		this.account_holder_name = new FieldString(prefix+"account_holder_name", (make_name_field?Field.FIELD_NAME:0), "Account Holder's Name", 150,entity);
		this.account_branch_code = new FieldString(prefix+"account_branch_code",(make_name_field?Field.FIELD_NAME:0), "Bank Branch Code", 50,entity);
		this.account_number = new FieldString(prefix+"account_number", (make_name_field?Field.FIELD_NAME:0), "Bank Account Number", 100,entity);
	}
}

